#include <vector>
#include <iostream>

using namespace std;

void print_vector(vector<int> v) {
    for (int i: v) {
        cout << i << ",";
    }
}

int main() {

    vector<int> v;
    vector<int>::iterator itr;
    v.push_back(1);
    v.push_back(2);
    v.push_back(3);
    v.push_back(4);

    print_vector(v);
    cout << endl;
//    v.erase(v.begin() + 1);

    for (itr = v.begin(); itr != v.end(); itr++) {
        cout << *itr << endl;
    }
}